package org.xinjiang.tarim.travel.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.xinjiang.tarim.travel.model.Impression;
import org.xinjiang.tarim.travel.vo.Criteria;

import java.util.List;

@Mapper
@Component("ImpressionMapper")
public interface ImpressionMapper {
    int insert(Impression impression);

    Impression selectByPrimaryKey(Long id);

    Long selectByOpenidCount(Criteria criteria);
    List<Impression> selectByOpenid(Criteria criteria);

    int delete(Long id);

    List<Impression> selectByPrimaryKeys(List list);
}